package com.ldzysoft.myweather.gson;

import com.google.gson.annotations.SerializedName;

import java.util.List;

// 获取天气：http://guolin.tech/api/weather?cityid=CN101190401
public class Weather {

    public String status;
    public Basic basic;
    public AQI aqi;
    public Now now;
    public Suggestion suggestion;

    @SerializedName("daily_forecast")
    public List<Forecast> forecastList;
}

/**
 * 天气接口返回：
 * {
 *   "HeWeather": [
 *     {
 *       "basic": {
 *         "cid": "CN101190401",
 *         "location": "苏州",
 *         "parent_city": "苏州",
 *         "admin_area": "江苏",
 *         "cnty": "中国",
 *         "lat": "30.5843544",
 *         "lon": "114.29856873",
 *         "tz": "+8.00",
 *         "city": "苏州",
 *         "id": "CN101190401",
 *         "update": {
 *           "loc": "2021-03-14 11:07",
 *           "utc": "2021-03-14 03:07"
 *         }
 *       },
 *       "update": {
 *         "loc": "2021-03-14 11:07",
 *         "utc": "2021-03-14 03:07"
 *       },
 *       "status": "ok",
 *       "now": {
 *         "cloud": "91",
 *         "cond_code": "101",
 *         "cond_txt": "多云",
 *         "fl": "21",
 *         "hum": "68",
 *         "pcpn": "0.0",
 *         "pres": "1012",
 *         "tmp": "21",
 *         "vis": "16",
 *         "wind_deg": "281",
 *         "wind_dir": "西北风",
 *         "wind_sc": "2",
 *         "wind_spd": "8",
 *         "cond": {
 *           "code": "101",
 *           "txt": "多云"
 *         }
 *       },
 *       "daily_forecast": [
 *         {
 *           "date": "2021-03-15",
 *           "cond": {
 *             "txt_d": "多云"
 *           },
 *           "tmp": {
 *             "max": "22",
 *             "min": "10"
 *           }
 *         },
 *         {
 *           "date": "2021-03-16",
 *           "cond": {
 *             "txt_d": "小雨"
 *           },
 *           "tmp": {
 *             "max": "18",
 *             "min": "8"
 *           }
 *         },
 *         {
 *           "date": "2021-03-17",
 *           "cond": {
 *             "txt_d": "多云"
 *           },
 *           "tmp": {
 *             "max": "19",
 *             "min": "6"
 *           }
 *         },
 *         {
 *           "date": "2021-03-18",
 *           "cond": {
 *             "txt_d": "雷阵雨"
 *           },
 *           "tmp": {
 *             "max": "16",
 *             "min": "10"
 *           }
 *         },
 *         {
 *           "date": "2021-03-19",
 *           "cond": {
 *             "txt_d": "小雨"
 *           },
 *           "tmp": {
 *             "max": "18",
 *             "min": "10"
 *           }
 *         },
 *         {
 *           "date": "2021-03-20",
 *           "cond": {
 *             "txt_d": "多云"
 *           },
 *           "tmp": {
 *             "max": "17",
 *             "min": "8"
 *           }
 *         }
 *       ],
 *       "aqi": {
 *         "city": {
 *           "aqi": "83",
 *           "pm25": "61",
 *           "qlty": "良"
 *         }
 *       },
 *       "suggestion": {
 *         "comf": {
 *           "type": "comf",
 *           "brf": "舒适",
 *           "txt": "白天不太热也不太冷，风力不大，相信您在这样的天气条件下，应会感到比较清爽和舒适。"
 *         },
 *         "sport": {
 *           "type": "sport",
 *           "brf": "较适宜",
 *           "txt": "天气较好，但因风力稍强，户外可选择对风力要求不高的运动，推荐您进行室内运动。"
 *         },
 *         "cw": {
 *           "type": "cw",
 *           "brf": "较适宜",
 *           "txt": "较适宜洗车，未来一天无雨，风力较小，擦洗一新的汽车至少能保持一天。"
 *         }
 *       },
 *       "msg": "所有天气数据均为模拟数据，仅用作学习目的使用，请勿当作真实的天气预报软件来使用。"
 *     }
 *   ]
 * }
 */
